class ProjectController < ApplicationController
  before_filter :login_required
  
  def index
    @active_projects  = Project.find_all_active
    @archived_projects = Project.find_all_archived
  end
  
  def new
    @project = Project.new
  end

def show
 @total_working_hours = Workunit.sum(:amount, :conditions => ['activity_id = ?',params[:id]])

  end
end